<?php

include_once $_SERVER['DOCUMENT_ROOT'] . '/functions/bdd/init.php';

function get_avion_photos($id) {
    $bdd = bdd_init();
    
    $rep = $bdd->prepare("SELECT * FROM images WHERE id_parent=? ORDER BY no");
    $rep->execute(array($id));
    $images = $rep;
    
    return $images;
} 

?>
